package com.zzxy.spring5.controller;

import com.zzxy.spring5.impl.TeacherServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class TeacherController {
    @Autowired
    private TeacherServiceImpl teacherService;
    public TeacherServiceImpl getTeacherService(){
        return teacherService;
    }
    public void setTeacherService(TeacherServiceImpl teacherService){
        this.teacherService=teacherService;
    }
    public void register(String username,String password){
        teacherService.register(username,password);
    }
}
